class Announcement < ActiveRecord::Base
  belongs_to :user
  
  class << self
    def latest(amount = 20)
      Announcement.all(:limit => amount, :order => 'created_at DESC')
    end
  end
end
